package geektime.spring.springbucks.waiterservice.model;

import java.util.Date;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;

@Table("t_order")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class CoffeeOrder {

  @Id
  private Long id;
  private String customer;
  private OrderState state;
  private List<Coffee> items;
  private Date createTime;
  private Date updateTime;
}
